package com.dfrz.bookstore.entry;

import javax.xml.crypto.Data;
import java.sql.Date;

/**
 * 类功能描述:
 *      用户类
 * @Author keyan
 * @Date 2021/5/18 18:34
 */
public class User  {
    private int id;   //用户id
    private String loginName;  //用户登录名
    private String passWord;    //密码
    private String name;        //用户名
    private String sex;         //用户性别
    private String email;      //用户邮箱
    private String tel;         //用户电话
    private int level;          //用户等级
    private String address;     //用户地址
    private String userImage;   //头像url
    private Date create_time;   //创建日期
    private Date update_time;   //更新日期


    public User(int id, String loginName, String passWord, String name, String sex, String email, String tel, int level, String address, String userImage, Date create_time, Date update_time) {
        this.id = id;
        this.loginName = loginName;
        this.passWord = passWord;
        this.name = name;
        this.sex = sex;
        this.email = email;
        this.tel = tel;
        this.level = level;
        this.address = address;
        this.userImage = userImage;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public User(String loginName, String passWord, String name, String sex, String email, String tel, int level, String address) {
        this.loginName = loginName;
        this.passWord = passWord;
        this.name = name;
        this.sex = sex;
        this.email = email;
        this.tel = tel;
        this.level = level;
        this.address = address;
    }

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", loginName='" + loginName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", email='" + email + '\'' +
                ", tel='" + tel + '\'' +
                ", level=" + level +
                ", address='" + address + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", userImage='" + userImage + '\'' +
                '}';
    }
}
